package com.cm.sys.framework.utils;

/***
 * 分页插件
 * 
 * @author yxq18
 *
 * @param <T>
 */
public class PageData<T> {

    protected T lists;
    // 总页数
    private int pageCount = 0;

    // 总行数量
    private int numCount = 1;

    // 每页显示数据量
    private int pageSize = 5;

    // 当前页
    private int pageIndex = 1;

    /**
     * lists
     * 
     * @return the lists
     * @since JDK 1.8
     */
    public T getLists() {
        return lists;
    }

    /**
     * lists
     * 
     * @param lists
     *            the lists to set
     * @since JDK 1.8
     */
    public void setLists(T lists) {

        this.lists = lists;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getNumCount() {
        return numCount;
    }

    public void setNumCount(int numCount) {
        this.numCount = numCount;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

}
